//
//  UITableViewHeaderFooterView+WSExtension.h
//  Component
//
//  Created by 王诗文 on 2018/7/26.
//  Copyright © 2018年 王诗文. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "WSTableCellProtocol.h"

@protocol WSTableViewHeaderFooterActionDelegate<NSObject>

-(void)headerClickedInSection:(NSInteger)section data:(id)data;

-(void)footerClickedInSection:(NSInteger)section data:(id)data;

@end

@interface UITableViewHeaderFooterView (WSExtension)<WSTableCellProtocol>

@property(nonatomic, weak) id<WSTableViewHeaderFooterActionDelegate>wsDelegate;

@property(nonatomic, assign) NSInteger section;


- (void)headerClicked:(id)data;
- (void)footerClicked:(id)data;

@end
